<?php
/* @var $this PriceAdminController */
/* @var $model Price */

$this->breadcrumbs=array(
	'Prices'=>array('index'),
	$model->price_id,
);

$this->menu=array(
	array('label'=>'Thêm giá', 'url'=>array('create')),
	array('label'=>'Sửa', 'url'=>array('update', 'id'=>$model->price_id)),
	//array('label'=>'Xoá', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->price_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Quản trị', 'url'=>array('admin')),
);
?>

<h1>Chi tiết giá (Mã: <?php echo $model->price_id; ?>)</h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'price_id',
        array(
            'name'=>'product_id',
            'type'=>'html',
            'value'=>CHtml::link(Product::model()->getName($model->product_id),array('Browser/Detail','id'=>$model->product_id)),
        ),
        array(
            'name'=>'merchant_id',
            'type'=>'html',
            'value'=>Merchant::model()->getName($model->merchant_id),
        ),
        array(
            'name'=>'price_value',
            'value'=>number_format($model->price_value,0,'',','),
        ),
        array(
            'name'=>'price_value_sale',
            'value'=>number_format($model->price_value_sale,0,'',','),
        ),
        array(
            'name'=>'price_url',
            'type'=>'html',
            'value'=>CHtml::link($model->price_url,$model->price_url),
        ),
	),
)); ?>
